Tandem's Log
Created: 5/31/2007 5:53:03 PM
<< 05/2007 < 05/2007 Calendar 06/2008 > 05/2009 >>Sign InView Other Logs
Tue 
05/20/2008 21:50:24
 Tandem  Unix Commands

Unix commands reference card


Environment Control

Command                     Description
cd d Change to directory d
mkdir d Create new directory d
rmdir d Remove directory d
mv f1 [f2...] d Move file f to directory d
mv d1 d2 Rename directory d1 as d2
passwd Change password
alias name1 name2 Create command alias (csh/tcsh)
alias name1="name2" Create command alias (ksh/bash)
unalias name1[na2...] Remove command alias na
ssh nd Login securely to remote node
exit End terminal session
setenv name v Set env var to value v (csh/tcsh)
export name="v" set environment variable to value v (ksh/bash)

Output, Communication, & Help

Command                     Description
lpr -P printer f
lp -d printer f Output file f to line printer
script [f] Save terminal session to
exit Stop saving terminal session
mailx username Send mail to user
man name Unix manual entry for name

Process Control

Command                     Description
CTRL/c * Interrupt processes
CTRL/s * Stop screen scrolling
CTRL/q * Resume screen output
sleep n Sleep for n seconds
jobs Print list of jobs
kill % Kill job n
ps Print process status stats
kill -9 n Remove process n
CTRL/z * Suspend current process
stop %n Suspend background job n
cmmd& Run cmmd in background
bg [%n] Resume background job n
fg [%n] Resume foreground job n
exit Exit from shell

Environment Status

Command                     Description
ls [d] [f...] List files in directory
ls -1 [f...] List files in detail
alias [name] Display command aliases
printenv [name] Print environment values
quota Display disk quota
date Print date & time
who List logged in users
whoami Display current user
finger [username] Output user information
chfn Change finger information
pwd Print working directory
history Display recent commands
! n Submit recent command n

File Manipulation

Command                     Description
vi [f] Vi fullscreen editor
emacs [f] Emacs fullscreen editor
ed [f] Text editor
wc f Line, word, & char count
cat f List contents of file
more f List file contents by screen
cat f1 f2 >f3 Concatenates f1 & f2 into f3
chmod mode f Change protection mode of f
cmp f1 f2 Compare two files
cp f1 f2 Copy file f1 into f2
sort f Alphabetically sort f
split [-n] f Split f into n-line pieces
mv f1 f2 Rename file f1 as f2
rm f Delete (remove) file f
grep 'ptn' f Outputs lines that match ptn
diff f1 f2 Lists file differences
head f Output beginning of f
tail f Output end of f

Compiler

Command                     Description
cc [-o f1] f2 C compiler
lint f Check C code for errors
f77 [-o f1] f2 Fortran77 compiler
pc [-o f1] f2 Pascal compiler

Working with NFS files

Files saved on the UITS central Unix computers Steel, the Parallel PC cluster, Solar/Lunar, and the Research SP are stored on the Network File Server (NFS). That means that your files are really on one disk, in directories named for the central Unix hosts on which you have accounts. No matter which of these computers you are logged into, you can get to your files on any of the others. Here are the commands to use to get to any system directory from any other system:
  cd /N/u/username/PPPC/
cd /N/u/username/Cobalt/
cd /N/u/username/Solar/
cd /N/u/username/Steel/
cd /n/u/username/SP/
Be sure you use the capitalization just as you see above, and substitute your own username for "username".
For example, if Jessica Rabbit is logged into her account on Steel, and wants to get a file on her SP account, she would enter:
  cd /N/u/jrabbit/SP/
Now when she lists her files, she'll see her SP files, even though she's actually logged into Steel. You can use the ordinary Unix commands to move files, copy files, or make symbolic links between files. For example, if Jessica Rabbit wanted to move "file1" from her Steel directory to her SP directory, she would enter:
  mv -i /N/u/jrabbit/Steel/file1 /N/u/jrabbit/SP/
This shared file system means that you can access, for example, your SP files even when you are logged into Steel, and vice versa. However, if you are logged into the SP, you can only use the software installed on SP -- only users' directories are linked together, not system directories.

Abbreviations used in this document

CTRL/x       hold down control key and press x
d directory
env environment
f filename
n number
nd computer node
prtr printer
ptn pattern
var variable
[y/n] yes or no
[] optional arg
... list

Printing this how-to guide

PDF iconA printable version of this guide is available in Adobe Acrobat's Portable Document Format (PDF). To print the PDF file, you need special software, such as the Acrobat Reader or the Acrobat Netscape plug-in. Everything you need for this is in the UITS Student Technology Centers. If you have trouble accessing a PDF file, notify the lab consultant. If you're at a personal computer and don't have the necessary software, you can download and install the Acrobat reader on your system. You'll need to do this step only once. To print this guide:
  1. Download Unix commands: A quick guide (Acrobat/pdf format).
  2. Use Acrobat to print the document.
If you wish to print this guide from your browser, please consult the browser's printing instructions.

Last updated: August 2000
http://www.indiana.edu/~uitspubs/b017/
Comments: ithelp@indiana.edu
Copyright 1995-2000, The Trustees of Indiana University

Tue 
10/09/2007 17:46:15
 jim  Programming Manuals
Wed 
09/26/2007 22:21:12
 jim  To find out what Tandem release you are on...
TACL> SYSINFO
I've worked on maybe 30 Tandem computers
And I never cared what system I was on, unless I was doing a sysgen, then you have to read the Softdocs.
But the question always comes up in the interviews "Are you familiar with the X-Series?"
If they ask me this, I always want to say, "Oh my yes, that was my favorite processor!".
And I'll think, "Yeppers, that's the release that changed almost nothing that I care about.".
The Tandem has remained pretty consistant over the decades. Thats what I really like about it.
lol
Mon 
09/17/2007 22:09:47
 jim  Tandem Shops
Shop Name Tandem Usage
AOL? Customer Log In Processing and E-mail
AXA Sun? Life Insurance Products. Tandem data was migrated to New World Systems (Lamba).
Australia.f New Zealand Bank POS,ATM,Pinpad
Banamex Banking
Banco Cuscatlan Banking El Salvador
Bell Canada Public Phone CC processing
Canadian Imperial Bank of Commerce Banking, POS, ATM
CareMark / CVS
9501 E. Shea Boulevard,Scottsdale, AZ 85260
Submitted by Tom Townsend, Tucson Group,(641) 923-2891
Had 1 late interview. The next one, they didn't call.
Chase Bank Banking
CBOT-Chicago Board of Trade Trading.  merged with CME.
CME-Chicago Mercantile Exchange Futures and Commodity Trading
2007/10/03-Applied through Eric Bormann, EBormann@glotelinc.com
CDG-Contenental Data Graphics
San Diego
A Boeing Company.
2007/10/30-Applied directly through Dice.
Resume sent to: kcowens@cdgnow.com
http://www.cdgnow.com/careers/openpositions.asp
Dubai Islamic Bank Banking
Emergis Health EDI, POS
Emirates Bank International Banking Base24
Equens ATM, financial Formally known as Interpay
Everlink POS, ATM
Evertec (central america) Switching, POS, ATM?
FAA Virginia, Airline Traffic Controllers
Fidelity Information services (Efunds) ATM,POS and Banking
First Data Pos
Fifth Third Bank
Clearwater, FL
Tal/Pos
Fiserv POS
ATM Freescale Ltd Logistics applications.
GE Health Care
Seattle, WA
Health
Genpass ATM Recently acquired by ??
ING Bank Netherlands Banking
Intermountain Health Care Health
Intrado e911
JP Morgan Chase
Tampa, FL
Resume sent 10/2005...rejected for position.
Sent by Jamie Kaiser at TekSystems
KPN Netherlands Telecom They used to a few years ago. Not sure if they still do.
Kleinschmidt Inc EDI
Mastercard POS
Mayo Clinic
2434 Superior Drive NW Suite 105
Rochester, MN 55901
Hospital, IDX-Last Word.
Resume sent - Authorized xylotechnologies.
Ph: 507-289-9956
Memorial Healthcare Health - CareCast Ft Lauderdale S86000
Metavante POS, ATM
Mexican Stock Exchange trading
Moneris Canada POS
NASDAQ trading
NYCE Banking POS, ATM
Oman - Al Watani Switch Banking, Switch
Oman International Bank Banking, ATM
Oman Mobile Telecoms SS7 Telco
Omantel SQL Telco
PROSA (mexico) ATM, POS
Pitney-Bowes Can someone tell us what they are used for?
Postbank Banking
Printrak Motorola E911 Provide E911 systems and software to Police agencies
Raymond James Banking. St Petersburg, FL
Interviewed with them in 2005. Interview went south.
Interviewer strayed into Object Oriented Paradigms.
https://raymondjames.com/careers/search.htm
Rabobank Banking
Ross Stores 4440 Rosewood Drive,Bldg 4,Pleasanton, CA 94588
Phone: (925) 965-4400
Web: http://www.rossstores.com
Royal Bank Bonds trading Outgoing...
Safeway Retail
Scotiabank Bess Funds transfer
St.George ATM,PoS
Sungard Brokerage trading
Tokyo Stock Exchange Trading
Toronto Dominion Bank POS, ATM, Banking
Toronto Stock Exchange trading
Total Systems Services ATM, Credit Cards. Columbus, GA
Submitted resume 10/30/2007 to https://tsys.recruitmax.com
Unibanco (brazil) Atm?
VISA (Denver) POS
Wells Fargo more info needed
Westpac ATM,PoS
Wright Express Fleet Fueling POS
Zion's Bank, UT Banking Small (2 proc) system
Fri 
06/01/2007 05:49:29
 Jim  Tandem Technical Documents
Thu 
05/31/2007 15:06:26
 Tandem  Sample Server

SERVER PROGRAM

IDENTIFICATION DIVISION.
PROGRAM-ID. EXAMPLE-SERVER.
ENVIRONMENT DIVISION.
CONFIGURATION SECTION.
	SOURCE-COMPUTER. TANDEM/16.
	OBJECT-COMPUTER. TANDEM/16.
INPUT-OUTPUT SECTION.
FILE-CONTROL.
	SELECT MESSAGE-IN,	ASSIGN TO $RECEIVE FILE STATUS IS RECEIVE-FILE-STATUS.
	SELECT MESSAGE-OUT, 	ASSIGN TO $RECEIVE FILE STATUS IS RECEIVE-FILE-STATUS.
RECEIVE-CONTROL. TABLE OCCURS 5 TIMES.
DATA DIVISION.
FILE SECTION.
FD MESSAGE-IN LABEL RECORDS ARE OMITTED.
01 ENTRY-MSG.
   02 PW-HEADER.
      04 REPLY-CODE				PIC S9(4) COMP.
      04 FUNCTION-CODE				PIC XX.
   02 MESSAGE-NUMBER				PIC 9.
FD MESSAGE-OUT LABEL RECORDS ARE OMITTED RECORD CONTAINS 1 TO 68 CHARACTERS.
01 ENTRY-REPLY.
   02 PW-HEADER.
      04 REPLY-CODE				PIC S9(4) COMP.
04 FILLER PIC X(2). 02 SERVER-RECORD PIC X(64). 01 ERROR-REPLY. 02 REPLY-CODE PIC S9(4) COMP. 02 FILLER PIC X(2). 02 ERROR-CODE PIC 999 COMP. WORKING-STORAGE SECTION. 01 RECEIVE-FILE-STATUS. 02 STAT-1 PIC 9. 88 CLOSE-FROM-REQUESTOR VALUE 1. 02 STAT-2 PIC 9. 01 WS. 02 ERROR-CODE PIC 999 COMP. PROCEDURE DIVISION. BEGIN-COBOL-SERVER. OPEN INPUT MESSAGE-IN. OPEN OUTPUT MESSAGE-OUT SYNCDEPTH 1. PERFORM B-TRANS UNTIL CLOSE-FROM-REQUESTOR. STOP RUN. B-TRANS. READ MESSAGE-IN, AT END STOP RUN. MOVE PW-HEADER OF MESSAGE-IN TO PW-HEADER OF MESSAGE-OUT. MOVE 0 TO ERROR-CODE OF WS IF FUNCTION-CODE = "01" PERFORM READ-MESSAGE ELSE PERFORM FUNCTION-NOT-SUPPORTED. IF ERROR-CODE OF WS = 0 MOVE 0 TO REPLY-CODE OF ENTRY-REPLY WRITE ENTRY-REPLY ELSE MOVE 999 TO REPLY-CODE OF ERROR-REPLY MOVE ERROR-CODE OF WS TO ERROR-CODE OF ERROR-REPLY WRITE ERROR-REPLY. READ-MESSAGE. IF MESSAGE-NUMBER = 0 MOVE "THIS IS MESSAGE ZERO" TO SERVER-RECORD ELSE IF MESSAGE-NUMBER = 1 MOVE "THIS IS MESSAGE NUMBER ONE" TO SERVER-RECORD ELSE IF MESSAGE-NUMBER = 2 MOVE "THIS IS MESSAGE NUMBER TWO" TO SERVER-RECORD ELSE PERFORM INVALID-MESSAGE-NUMBER. FUNCTION-NOT-SUPPORTED. MOVE 1 TO ERROR-CODE OF WS. INVALID-MESSAGE-NUMBER. MOVE 2 TO ERROR-CODE OF WS.
Thu 
05/31/2007 15:05:45
 Tandem  Sample Requester

 SCREEN COBOL - REQUESTER PROGRAM

IDENTIFICATION DIVISION.
PROGRAM-ID. EXAMPLE-SCREEN-PROGRAM.
ENVIRONMENT DIVISION.
CONFIGURATION SECTION.
   SOURCE-COMPUTER. T16.
   OBJECT-COMPUTER. T16,
   TERMINAL IS T16-6520.
SPECIAL-NAMES.
   F1-KEY IS F1, F2-KEY IS F2, F15-KEY IS F15, F16-KEY IS F16
   SF1-KEY IS SF1, SF16-KEY IS SF16, ATTENTION IS REVERSE.
DATA DIVISION.
WORKING-STORAGE SECTION.
01 WS.
   02 ERROR-MSG PIC X(64).
01 EXIT-FLAG PIC 9 VALUE 0.
   88 EXIT-PROGRAM VALUE 1.
01 SEND-ERROR-FLAG PIC 99.
01 ENTRY-MSG.
   02 PW-HEADER.
      04 REPLY-CODE PIC S9(4) COMP.
      04 FUNCTION-CODE PIC XX.
         02 MESSAGE-NUMBER PIC 9.
01 ENTRY-REPLY.
   02 PW-HEADER.
      04 REPLY-CODE PIC S9(4) COMP.
      04 FILLER PIC X(2).
   02 SERVER-RECORD PIC X(64).
01 ERROR-REPLY.
   02 REPLY-CODE PIC 9(4) COMP.
   02 FILLER PIC X(2).
   02 ERROR-CODE PIC 999 COMP.
SCREEN SECTION.
01 EXAMPLE-SCREEN BASE SIZE 24, 80.
   03 FILLER				AT 1, 20	VALUE "EXAMPLE SCREEN COBOL PROGRAM".
   03 FILLER				AT 10, 1	VALUE "MESSAGE NUMBER :".
   03 MESSAGE-NUMBER 			AT 10, * + 2 	PIC 9, 
							USING MESSAGE-NUMBER OF ENTRY-MSG.
   03 MESSAGE-TEXT	AT 12, 1	PIC X(64) 	FROM SERVER-RECORD OF ENTRY-REPLY.
   03 FILLER				AT 21, 15 	VALUE "F1 - READ F16 - EXIT PROGRAM".
   03 ERROR-MSG		AT 24, 2	PIC X(64) 	ADVISORY FROM ERROR-MSG OF WS.
PROCEDURE DIVISION.
A-MAIN.
   DISPLAY BASE EXAMPLE-SCREEN.
   MOVE 0 TO MESSAGE-NUMBER OF ENTRY-MSG.
   DISPLAY MESSAGE-NUMBER OF EXAMPLE-SCREEN.
   PERFORM CASE-MANAGER UNTIL EXIT-PROGRAM.
A-EXIT.
   EXIT PROGRAM.
CASE-MANAGER.
   ACCEPT MESSAGE-NUMBER OF EXAMPLE-SCREEN 
UNTIL F1-KEY ESCAPE ON F16-KEY (F2-KEY THROUGH F15-KEY, SF1-KEY THROUGH SF16-KEY). PERFORM ONE OF READ-MESSAGE, SET-EXIT, KEY-NOT-SUPPORTED DEPENDING ON TERMINATION-STATUS. READ-MESSAGE. MOVE "01" TO FUNCTION-CODE OF ENTRY-MSG. PERFORM SEND-DATA. SET-EXIT. MOVE 1 TO EXIT-FLAG. KEY-NOT-SUPPORTED. MOVE "FUNCTION KEY NOT SUPPORTED" TO ERROR-MSG OF WS. PERFORM DISPLAY-ADVISORY. SEND-DATA. MOVE 0 TO SEND-ERROR-FLAG. SEND ENTRY-MSG TO "EXAMPLE-SERVER" REPLY CODE 0 YIELDS ENTRY-REPLY CODE 999 YIELDS ERROR-REPLY ON ERROR PERFORM SEND-ERROR. IF SEND-ERROR-FLAG = 99 DISPLAY TEMP "SEND ERROR" IN ERROR-MSG OF EXAMPLE-SCREEN ELSE
PERFORM ONE OF PARA-1 PARA-2 DEPENDING ON TERMINATION-STATUS. PARA-1. MOVE SPACES TO ERROR-MSG OF WS DISPLAY MESSAGE-TEXT OF EXAMPLE-SCREEN, ERROR-MSG OF EXAMPLE-SCREEN. PARA-2. PERFORM SETUP-SERVER-ERROR PERFORM DISPLAY-ADVISORY. SEND-ERROR. MOVE 99 TO SEND-ERROR-FLAG. SETUP-SERVER-ERROR. IF ERROR-CODE = 1
MOVE "SERVER FUNCTION NOT SUPPORTED" TO ERROR-MSG OF WS ELSE IF ERROR-CODE = 2 MOVE "MESSAGE DOES NOT EXIST FOR SPECIFIED NUMBER" TO ERROR-MSG OF WS ELSE MOVE "UNKNOWN SERVER ERROR" TO ERROR-MSG OF WS. DISPLAY-ADVISORY. DISPLAY TEMP ERROR-MSG OF EXAMPLE-SCREEN. TURN TEMP ATTENTION IN ERROR-MSG OF EXAMPLE-SCREEN.

<< 05/2007 < 05/2007 Calendar 06/2008 > 05/2009 >>Sign InView Other Logs